{% extends "base.html" %}
{% block header %}
<script type="text/javascript" src="/static/js/date/WdatePicker.js"></script>
{% endblock %}
{% block menu %}
   {% include 'doc-menu.html' %}
{% endblock %}
{% block content %}
<div id="mon-tit">
    <div class="left">暴风文档中心 >> 添加文档</div>
</div>
    <div class="clr"></div>
    <hr>
    <h3 class='tit'>添加新文档</h3>
    {% if errors %}
        <ul>
            {% for error in errors %}
            <li>{{ error }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    <table width="100%">
		<form method="post" action="../adddoc/" >
			文档标题：&nbsp;&nbsp;
			<input type="text" name="title" ></br></br>
			文档内容：&nbsp;&nbsp;
			<script type="text/javascript" src="/static/ckeditor/ckeditor.js"></script>
			<textarea cols="120" id="text" name="text" rows="5">
			 	在这里输入文档内容。。。
			</textarea> 
			<script type="text/javascript"> 
			var editor = CKEDITOR.replace('text'); 
			</script></br></br>
			文档类型：&nbsp;
			<select name="type" >
			<option value =""></option>
			<option value ="0">- 环境部署 -</option>
			<option value ="1">- 运维文档 -</option>
			<option value ="2">- 上线文档 -</option>
			</select></br></br>
			产品线：&nbsp;&nbsp;&nbsp;&nbsp;
			<select name="pid" >
			<option value =""></option>
			<option value ="1">- Http -</option>
			<option value ="2">- Apache -</option>
			<option value ="3">- Port -</option>
			<option value ="4">- Nginx -</option>
			</select></br></br>
			<input type="submit" value="提交">
		</form>
   </table>
{% endblock %}
